<% form_for(@member) do |f| %>
  <%= f.error_messages %>
	<%@member.attributes.keys.sort.each do |key|%>
		<p><label for=<%="member[#{key}]"%>><%=key%></label></p>
		<p><%=f.text_field key%></p>
	<%end%>
    <%= f.submit "Save" %>
  </p>
<% end %>

<%= link_to 'Show', @member %> |
<%= link_to 'Back', members_path %>
